import request from "@/utils/request";
/**
 * 开始直播
 * @returns
 */
export function start(data) {
  return request({
    url: "/bv/live/start",
    method: "post",
    data: data
  });
}

/**
 * 生成音频
 * @returns
 */
export function generate(data) {
  return request({
    url: "/bv/live/generate",
    method: "post",
    data: data
  });
}

/**
 * 停止直播
 * @returns
 */
export function stop() {
  return request({
    url: "/bv/live/stop",
    method: "post",
  });
}

/**
 * 更新用户数量
 * @returns
 */
export function updateUserCount(data) {
  return request({
    url: "/bv/live/updateUserCount",
    method: "post",
    data: data
  });
}

/**
 * 获取直播间状态
 * @returns
 */
export function getLiveRoomStatus(data) {
  return request({
    url: "/bv/live/getLiveRoomStatus",
    method: "post",
    data: data
  });
}


/**
 * 实时调整音频速度
 * @returns
 */
export function realTimeChangeSpeed(data) {
  return request({
    url: "/bv/live/realTimeChangeSpeed",
    method: "post",
    data: data
  });
}


/**
 * 实时调整音量
 * @returns
 */
export function realTimeChangeVolumn(data) {
  return request({
    url: "/bv/live/realTimeChangeVolumn",
    method: "post",
    data: data
  });
}


/**
 * 实时调整音频音效
 * @returns
 */
export function realTimeChangeGainDb(data) {
  return request({
    url: "/bv/live/realTimeChangeGainDb",
    method: "post",
    data: data
  });
}

/**
 * 开始避音
 * @returns
 */
export function startMute() {
  return request({
    url: "/bv/live/startMute",
    method: "post"
  });
}


/**
 * 开始避音
 * @returns
 */
export function endMute() {
  return request({
    url: "/bv/live/endMute",
    method: "post"
  });
}